package com.thb.pay.engine.context;

import com.google.common.collect.Maps;

import java.util.Map;

/**
 * 简单的上下文实现
 */
public class SimpleContext extends ContextParam {

    private Map<String, Object> dataMap;

    public SimpleContext() {
        this.dataMap = Maps.newHashMap();
    }

    public void put(String key, Object value) {
        this.dataMap.put(key, value);
    }

    public Object get(String key) {
        return this.dataMap.get(key);
    }
}
